home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 February / maximum-cd-2001-02.iso / Team Arena / TeamArenaDemo.exe / Main / pak0.pk3 / ui / joinserver.menu < prev    next >
Encoding:
Text File  |  2000-11-22  |  25.7 KB  |  1,240 lines

  1. #include "ui/menudef.h"
  2.  
  3. {
  4. \\ Server Join \\
  5.  
  6.   menuDef {
  7.     name "joinserver"
  8.     visible 0
  9.     fullscreen 1
  10.     rect 0 0 640 480
  11.     //background uibackground4
  12.     background "menuback_a"
  13.     focusColor 1 .75 0 1
  14.     outOfBoundsClick    
  15.         style 1
  16.         border 1
  17.     onOpen { setitemcolor fadebox backcolor 0 0 0 1 ; 
  18.     playlooped "music/fla_mp03.wav" ;
  19.     fadeout fadebox ; 
  20.     uiScript UpdateFilter }
  21.     onEsc { uiScript closeJoin }
  22.  
  23.  
  24. //    top bar    //
  25.  
  26.  
  27.   itemDef {
  28.           name sourcebar
  29.           style 2
  30.           rect 0 20 640 40 
  31.           style 2
  32.           border 4
  33.           bordercolor 0.5 0.5 0.5 0.5
  34.           bordersize 2
  35.                 backcolor 0 0 .75 0.5
  36.                 visible 1 
  37.                 mouseEnter { setcolor backcolor .75 0 0 .5 }
  38.           mouseExit { setcolor backcolor 0 0 .75 .5 }
  39.           decoration 
  40.     }
  41.  
  42. // DATE AND MESSAGE OF THE DAY    //
  43.  
  44. itemDef {
  45.     name datewindow
  46.     rect 10 365 265 25
  47.     style WINDOW_STYLE_FILLED    
  48.     border 1
  49.     bordercolor .5 .5 .5 1
  50.     backcolor 0 0 0 .15
  51.     visible 1
  52.     }
  53. itemDef {
  54.     name messagewindow
  55.     rect 275 365 355 25
  56.     style WINDOW_STYLE_FILLED    
  57.     border 1
  58.     bordercolor .5 .5 .5 1
  59.     backcolor 0 0 0 .15
  60.     visible 1
  61.     }
  62.  
  63. itemDef {
  64.           name refreshdate
  65.         ownerdraw UI_SERVERREFRESHDATE
  66.           textscale .22
  67.           rect 10 365 265 25
  68.         textalign 0
  69.           textalignx 10        
  70.           textaligny 20
  71.           forecolor 1 1 1 1
  72.           visible 1
  73.     decoration 
  74.     }
  75. itemDef {
  76.           name messageoftheday
  77.         ownerdraw UI_SERVERMOTD
  78.           textscale .3
  79.           rect 280 365 345 25
  80.           forecolor 1 1 1 1
  81.           visible 1 
  82.     decoration
  83.     }
  84.  
  85.  
  86.  
  87. // map selection
  88.  
  89.  
  90. itemDef {
  91.           name gametypefield
  92.           style 0    
  93.      ownerdraw UI_NETSOURCE
  94.         rect 10 20 134 40 
  95.     textstyle 6
  96.           textalign ITEM_ALIGN_LEFT        
  97.           textalignx 2     
  98.           textaligny 30    
  99.     textscale .32     
  100.           forecolor 1 1 1 1
  101.          visible 1 
  102.     action { play "sound/misc/kcaction.wav" }
  103.     mouseEnter { show message_source }
  104.           mouseExit { hide message_source }
  105.         }
  106.  
  107. itemDef {
  108.           name gametypefield
  109.           style 0    
  110.     textstyle 6
  111.     ownerdraw UI_NETFILTER
  112.         rect 149 20 181 40 
  113.           textalign ITEM_ALIGN_LEFT        
  114.           textalignx 2     
  115.           textaligny 30    
  116.     textscale .32     
  117.         forecolor 1 1 1 1
  118.         visible 1 
  119.     action { play "sound/misc/kcaction.wav" }
  120.     mouseEnter { show message_gamefilter }
  121.     mouseExit { hide message_gamefilter }
  122.       }
  123.  
  124. itemDef {
  125.     name gametypefield
  126.     style 0    
  127.     textstyle 6
  128.     text "Type:"
  129.     ownerdraw UI_JOINGAMETYPE
  130.         rect 330 20 160 40 
  131.         textalign ITEM_ALIGN_LEFT        
  132.         textalignx 2     
  133.         textaligny 30    
  134.     textscale .32     
  135.           forecolor 1 1 1 1
  136.           border 0
  137.           bordercolor 0 0 0 0
  138.           visible 1 
  139.     action { play "sound/misc/kcaction.wav" }
  140.     mouseEnter { show message_typefilter }
  141.           mouseExit { hide message_typefilter }
  142.     }
  143.  
  144. itemDef {
  145.           name mappreview
  146.           style 0    
  147.      ownerdraw UI_NETMAPCINEMATIC
  148.           rect 505 5 128 96
  149.           border 1
  150.           bordercolor 0 .5 0 .5
  151.           visible 1 
  152.     }
  153.  
  154. itemDef {
  155.           name mappreview
  156.     style WINDOW_STYLE_FILLED    
  157.           rect 505 5 128 96 
  158.           border 1
  159.           bordercolor .5 .5 .5 .5
  160.           visible 1 
  161.     }
  162.  
  163.  
  164.  
  165. itemDef {
  166.     name horizontoalseparators
  167.     rect 10 132 604 20
  168.     style WINDOW_STYLE_FILLED
  169.     border 0
  170.     backcolor 0 0 .5 .25
  171.     visible 1
  172.     decoration
  173.   }
  174.  
  175. itemDef {
  176.     name horizontoalseparators
  177.     rect 10 172 604 20
  178.     style WINDOW_STYLE_FILLED
  179.     border 0
  180.     backcolor 0 0 .5 .25
  181.     visible 1
  182.     decoration
  183.   }
  184. itemDef {
  185.     name horizontoalseparators
  186.     rect 10 212 604 20
  187.     style WINDOW_STYLE_FILLED
  188.     border 0
  189.     backcolor 0 0 .5 .25
  190.     visible 1
  191.     decoration
  192.   }
  193. itemDef {
  194.     name horizontoalseparators
  195.     rect 10 252 604 20
  196.     style WINDOW_STYLE_FILLED
  197.     border 0
  198.     backcolor 0 0 .5 .25
  199.     visible 1
  200.     decoration
  201.   }
  202. itemDef {
  203.     name horizontoalseparators
  204.     rect 10 292 604 20
  205.     style WINDOW_STYLE_FILLED
  206.     border 0
  207.     backcolor 0 0 .5 .25
  208.     visible 1
  209.     decoration
  210.   }
  211. itemDef {
  212.     name horizontoalseparators
  213.     rect 10 332 604 20
  214.     style WINDOW_STYLE_FILLED
  215.     border 0
  216.     backcolor 0 0 .5 .25
  217.     visible 1
  218.     decoration
  219.   }
  220.  
  221. //    COLUMNS    //
  222.  
  223.  
  224.  
  225. itemDef {
  226.     name serverColumn
  227.     group grpColumn
  228.     rect 10 128 265 235
  229.     style WINDOW_STYLE_FILLED
  230.     border 1
  231.     backcolor 0 0 0 0
  232.     bordersize 1
  233.     bordercolor .5 .5 .5 1
  234.     visible 1
  235.     decoration
  236.   }
  237. itemDef {
  238.     name mapColumn
  239.     group grpColumn
  240.     rect 275 128 125 235
  241.     style WINDOW_STYLE_FILLED
  242.     border 1
  243.     backcolor 0 0 0 0
  244.     bordersize 1
  245.     bordercolor .5 .5 .5 1
  246.     visible 1
  247.     decoration
  248.   }
  249. itemDef {
  250.     name playerColumn
  251.     group grpColumn
  252.     rect 400 128 60 235
  253.     style WINDOW_STYLE_FILLED
  254.     border 1
  255.     backcolor 0 0 0 0
  256.     bordersize 1
  257.     bordercolor .5 .5 .5 1
  258.     visible 1
  259.     decoration
  260.   }
  261. itemDef {
  262.     name typeColumn
  263.     group grpColumn
  264.     rect 460 128 100 235
  265.     style WINDOW_STYLE_FILLED
  266.     border 1
  267.     backcolor 0 0 0 0
  268.     bordersize 1
  269.     bordercolor .5 .5 .5 1
  270.     visible 1
  271.     decoration
  272.   }
  273. itemDef {
  274.     name pingColumn
  275.     group grpColumn
  276.     rect 560 128 52 235
  277.     style WINDOW_STYLE_FILLED
  278.     border 1
  279.     backcolor 0 0 0 0
  280.     bordersize 1
  281.     bordercolor .5 .5 .5 1
  282.     visible 1
  283.     decoration
  284.   }
  285.  
  286.  
  287.  
  288.  itemDef {
  289.     name serverlist
  290.     rect 10 128 620 235
  291.     type ITEM_TYPE_LISTBOX
  292.     style WINDOW_STYLE_FILLED
  293.     elementwidth 120
  294.     elementheight 20
  295.     textscale .25
  296.     elementtype LISTBOX_TEXT
  297.     feeder FEEDER_SERVERS
  298.     border 1
  299.     bordercolor .5 .5 .5 1
  300.     forecolor 1 1 1 1
  301.     backcolor 0 0 .7 .25
  302.     outlinecolor 0 1 0 .25
  303.     visible 1
  304.     columns 5 2 40 40 275 40 20 400 5 10 460 20 10 560 20 20
  305.     mouseenter { setitemcolor serverlist bordercolor .7 0 0 1 }
  306.     mouseexit { setitemcolor serverlist bordercolor .5 .5 .5 .5 }
  307.     doubleClick { uiScript JoinServer }
  308.   }
  309.  
  310.  
  311.  
  312.  
  313.  
  314. //    SORT TABS    //
  315.  
  316.  
  317.  itemDef {
  318.           name server
  319.     group grpTabs
  320.           text "Server Name"
  321.     type ITEM_TYPE_BUTTON
  322.           textscale .25
  323.           style WINDOW_STYLE_FILLED
  324.     background "ui/assets/sorttab.tga"
  325.           rect 10 103 110 26 
  326.     textalign 1
  327.           textalignx 59        // center
  328.           textaligny 21
  329.           forecolor 1 1 1 1
  330.     backcolor .1 .1 .37 1
  331.           visible 1 
  332.           action { play "sound/misc/nomenu.wav" ; 
  333.         uiScript ServerSort 0 ; 
  334.         setitemcolor grpTabs backcolor .1 .1 .37 1 ; 
  335.         setitemcolor server backcolor .1 .37 .1 1 ; 
  336.         setitemcolor grpColumn backcolor 0 0 0 0 ; 
  337.         setitemcolor serverColumn backcolor 0 1 0 .25 }
  338.     mouseEnter { show message_sort ; setitemcolor serverColumn bordercolor 1 0 0 1 }
  339.           mouseExit { hide message_sort ; setitemcolor serverColumn bordercolor .5 .5 .5 1 }  
  340.     }
  341.  
  342.  
  343.  
  344.  itemDef {
  345.           name map
  346.     group grpTabs
  347.     type ITEM_TYPE_BUTTON
  348.           text "Map Name"
  349.           textscale .25
  350.     style WINDOW_STYLE_FILLED
  351.     background "ui/assets/sorttab.tga"
  352.           rect 275 103 100 26
  353.     textalign 1
  354.           textalignx 50        // center
  355.           textaligny 21
  356.     backcolor .1 .1 .37 1
  357.           forecolor 1 1 1 1
  358.           visible 1 
  359.           action { play "sound/misc/nomenu.wav" ; 
  360.         uiScript ServerSort 1 ; 
  361.         setitemcolor grpTabs backcolor .1 .1 .37 1 ; 
  362.         setitemcolor map backcolor .1 .37 .1 1 ; 
  363.         setitemcolor grpColumn backcolor 0 0 0 0 ; 
  364.         setitemcolor mapColumn backcolor 0 1 0 .25 }
  365.     mouseEnter { show message_sort ; setitemcolor mapColumn bordercolor 1 0 0 1 }
  366.           mouseExit { hide message_sort ; setitemcolor mapColumn bordercolor .5 .5 .5 1 }            
  367.     }
  368.  
  369.  
  370.  
  371.  itemDef {
  372.     name Players
  373.     group grpTabs
  374.     text "#Plyrs"
  375.     type ITEM_TYPE_BUTTON
  376.     textscale .25
  377.     style WINDOW_STYLE_FILLED
  378.     background "ui/assets/sorttab.tga"
  379.     rect 400 103 50 26
  380.     textalign 1
  381.     textalignx 25        // center
  382.     textaligny 21
  383.     forecolor 1 1 1 1
  384.     backcolor .1 .1 .37 1
  385.     visible 1 
  386.     action { play "sound/misc/nomenu.wav" ; 
  387.         uiScript ServerSort 2 ;
  388.         setitemcolor grpTabs backcolor .1 .1 .37 1 ; 
  389.         setitemcolor Players backcolor .1 .37 .1 1 ;  
  390.         setitemcolor grpColumn backcolor 0 0 0 0 ; 
  391.         setitemcolor playerColumn backcolor 0 1 0 .25 }
  392.     mouseEnter { show message_sort ; setitemcolor playerColumn bordercolor 1 0 0 1 }
  393.           mouseExit { hide message_sort ; setitemcolor playerColumn bordercolor .5 .5 .5 1 }        
  394.     }
  395.  
  396.  
  397. itemDef {
  398.     name Type
  399.     group grpTabs
  400.     text "Type"
  401.     textscale .25
  402.     type ITEM_TYPE_BUTTON
  403.     style WINDOW_STYLE_FILLED
  404.     background "ui/assets/sorttab.tga"
  405.     rect 460 103 60 26
  406.     textalign 1
  407.     textalignx 30        // center
  408.     textaligny 21
  409.     backcolor .1 .1 .37 1
  410.     forecolor 1 1 1 1
  411.     visible 1 
  412.     action { play "sound/misc/nomenu.wav" ; 
  413.         uiScript ServerSort 3 ;
  414.         setitemcolor grpTabs backcolor .1 .1 .37 1 ; 
  415.         setitemcolor Type backcolor .1 .37 .1 1 ;  
  416.         setitemcolor grpColumn backcolor 0 0 0 0 ; 
  417.         setitemcolor typeColumn backcolor 0 1 0 .25 }
  418.     mouseEnter { show message_sort ; setitemcolor typeColumn bordercolor 1 0 0 1 }
  419.           mouseExit { hide message_sort ; setitemcolor typeColumn bordercolor .5 .5 .5 1 }            
  420.     }
  421.  
  422.  
  423. itemDef {
  424.     name Ping
  425.     group grpTabs
  426.     text "Ping"
  427.     type ITEM_TYPE_BUTTON
  428.     textscale .25
  429.     style WINDOW_STYLE_FILLED
  430.     background "ui/assets/sorttab.tga"
  431.     rect 560 103 52 26
  432.     textalign 1
  433.     textalignx 26        // center
  434.     textaligny 21
  435.     backcolor .1 .1 .37 1
  436.     forecolor 1 1 1 1
  437.     visible 1 
  438.     action { play "sound/misc/nomenu.wav" ; 
  439.         uiScript ServerSort 4 ;
  440.         setitemcolor grpTabs backcolor .1 .1 .37 1 ; 
  441.         setitemcolor Ping backcolor .1 .37 .1 1 ;  
  442.         setitemcolor grpColumn backcolor 0 0 0 0 ;
  443.         setitemcolor pingColumn backcolor 0 1 0 .25 }
  444.     mouseEnter { show message_sort ; setitemcolor pingColumn bordercolor 1 0 0 1 }
  445.           mouseExit { hide message_sort ; setitemcolor pingColumn bordercolor .5 .5 .5 1 }      
  446.     }
  447.  
  448.  
  449.  
  450.  
  451.  
  452. //     BUTTONS        //
  453.  
  454. itemDef {
  455.           name refreshSource
  456.           text "Get New List"
  457.     type ITEM_TYPE_BUTTON
  458.           textscale .3
  459.     style WINDOW_STYLE_FILLED
  460.     //background "ui/assets/button_red.tga"
  461.     background "ui/assets/button_back.tga"
  462.           rect 16 67 105 26
  463.     textalign 1
  464.           textalignx 52        // center
  465.           textaligny 20
  466.     backcolor .37 .1 .1 1
  467.           forecolor 1 1 1 1
  468.           visible 1 
  469.     mouseEnter { show message_refreshSOurce ; setitemcolor refreshSource backcolor .1 .37 .1 1 }
  470.           mouseExit { hide message_refreshSource ; setitemcolor refreshSource backcolor .37 .1 .1 1 }
  471.     action { play "sound/misc/nomenu.wav" ; 
  472.     uiScript RefreshServers }            
  473.         }
  474.  
  475.  
  476.  
  477. itemDef {
  478.           name refreshSource
  479.     style WINDOW_STYLE_SHADER
  480.     background "ui/assets/framebutton.tga"
  481.      rect 16 67 105 26
  482.           visible 1 
  483.     decoration        
  484.         }
  485.  
  486. itemDef {
  487.           name refreshSource
  488.     style WINDOW_STYLE_SHADER
  489.     background "ui/assets/leftbutton.tga"
  490.           rect 4 67 13 26
  491.           visible 1 
  492.     decoration        
  493.         }
  494. itemDef {
  495.           name refreshSource
  496.     style WINDOW_STYLE_SHADER
  497.     background "ui/assets/rightbutton.tga"
  498.           rect 120 67 13 26
  499.           visible 1 
  500.     decoration        
  501.         }
  502.  
  503.  
  504.  
  505.  
  506. itemDef {
  507.           name refreshFilter
  508.           text "Refresh List"
  509.           textscale .3
  510.     style WINDOW_STYLE_FILLED
  511.     type ITEM_TYPE_BUTTON
  512.     background "ui/assets/button_back.tga"
  513.           rect 149 67 94 26
  514.     textalign 1
  515.           textalignx 46        // center
  516.           textaligny 20
  517.     backcolor .37 .1 .1 1 
  518.           forecolor 1 1 1 1
  519.           visible 1 
  520.     mouseEnter { show message_refreshFilter ; setitemcolor refreshFilter backcolor .1 .37 .1 1 }
  521.           mouseExit { hide message_refreshFilter ; setitemcolor refreshFilter backcolor .37 .1 .1 1 }            
  522.     action { play "sound/misc/nomenu.wav" ; 
  523.     uiScript RefreshFilter }            
  524.         }
  525.  
  526.  
  527.  
  528. itemDef {
  529.           name refreshFilter
  530.     style WINDOW_STYLE_SHADER
  531.     background "ui/assets/framebutton.tga"
  532.           rect 149 67 94 26
  533.           visible 1 
  534.     decoration        
  535.         }
  536.  
  537.  
  538. itemDef {
  539.           name refreshFilter
  540.     style WINDOW_STYLE_SHADER
  541.     background "ui/assets/leftbutton.tga"
  542.           rect 137 67 13 26
  543.           visible 1 
  544.     decoration        
  545.         }
  546.  
  547. itemDef {
  548.           name refreshFilter
  549.     style WINDOW_STYLE_SHADER
  550.     background "ui/assets/rightbutton.tga"
  551.           rect 242 67 13 26
  552.           visible 1 
  553.     decoration        
  554.         }
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564. itemDef {
  565.           name password
  566.           text "Password"
  567.     type ITEM_TYPE_BUTTON
  568.           textscale .3
  569.     style WINDOW_STYLE_FILLED
  570.     background "ui/assets/button_back.tga"
  571.           rect 20 395 92 26
  572.     textalign 1
  573.           textalignx 46        // center
  574.           textaligny 20
  575.     backcolor .37 .1 .1 1
  576.           forecolor 1 1 1 1
  577.           visible 1 
  578.           action { play "sound/misc/kcaction.wav" ; 
  579.     open password_popmenu }
  580.     mouseEnter { show message_password ; setitemcolor password backcolor .1 .37 .1 1 }
  581.           mouseExit { hide message_password ; setitemcolor password backcolor .37 .1 .1 1 }            
  582.     }
  583.  
  584. itemDef {
  585.           name password
  586.     style WINDOW_STYLE_SHADER
  587.     background "ui/assets/framebutton.tga"
  588.     rect 20 395 92 26
  589.           visible 1 
  590.     decoration        
  591.         }
  592.  
  593. itemDef {
  594.           name password
  595.     style WINDOW_STYLE_SHADER
  596.     background "ui/assets/leftbutton.tga"
  597.           rect 14 395 7 26
  598.           visible 1 
  599.     decoration        
  600.         }
  601.  
  602. itemDef {
  603.           name password
  604.     style WINDOW_STYLE_SHADER
  605.     background "ui/assets/rightbutton.tga"
  606.           rect 111 395 7 26
  607.           visible 1 
  608.     decoration        
  609.         }
  610.  
  611.  
  612. itemDef {
  613.           name createFavorite
  614.           text "New Favorite"
  615.     type ITEM_TYPE_BUTTON
  616.           textscale .3
  617.     style WINDOW_STYLE_FILLED
  618.     background "ui/assets/button_back.tga"
  619.           rect 148 395 92 26
  620.     textalign 1
  621.           textalignx 46        // center
  622.           textaligny 20
  623.     backcolor .37 .1 .1 1
  624.           forecolor 1 1 1 1
  625.           visible 1 
  626.           action { play "sound/misc/kcaction.wav" ; 
  627.     open createfavorite_popmenu }
  628.     mouseEnter { show message_createFavorite ; setitemcolor createFavorite backcolor .1 .37 .1 1 }
  629.           mouseExit { hide message_createFavorite ; setitemcolor createFavorite backcolor .37 .1 .1 1 }                    
  630.         }
  631. itemDef {
  632.           name createFavorite
  633.     style WINDOW_STYLE_SHADER
  634.     background "ui/assets/framebutton.tga"
  635.     rect 148 395 92 26
  636.           visible 1 
  637.     decoration        
  638.         }
  639.  
  640. itemDef {
  641.           name createFavorite
  642.     style WINDOW_STYLE_SHADER
  643.     background "ui/assets/leftbutton.tga"
  644.           rect 142 395 7 26
  645.           visible 1 
  646.     decoration        
  647.         }
  648.  
  649. itemDef {
  650.           name createFavorite
  651.     style WINDOW_STYLE_SHADER
  652.     background "ui/assets/rightbutton.tga"
  653.           rect 239 395 7 26
  654.           visible 1 
  655.     decoration        
  656.         }
  657.  
  658.  
  659.  
  660.  
  661.  
  662. itemDef {
  663.           name addFavorite
  664.           text "Add Favorite"
  665.     type ITEM_TYPE_BUTTON
  666.           textscale .3
  667.     style WINDOW_STYLE_FILLED
  668.     background "ui/assets/button_back.tga"
  669.     ownerdrawFlag UI_SHOW_NOTFAVORITESERVERS
  670.           rect 276 395 92 26
  671.     textalign 1
  672.           textalignx 46        // center
  673.           textaligny 20
  674.     backcolor .37 .1 .1 1
  675.           forecolor 1 1 1 1
  676.           visible 1 
  677.           action { play "sound/misc/nomenu.wav" ; 
  678.     uiScript addFavorite }
  679.     mouseEnter { show message_addFavorite ; setitemcolor addFavorite backcolor .1 .37 .1 1 }
  680.           mouseExit { hide message_addFavorite ; setitemcolor addFavorite backcolor .37 .1 .1 1 }            
  681.         }
  682.  
  683.  
  684. itemDef {
  685.           name addFavorite
  686.     style WINDOW_STYLE_SHADER
  687.     background "ui/assets/framebutton.tga"
  688.     rect 276 395 92 26
  689.           visible 1 
  690.     decoration        
  691.         }
  692.  
  693. itemDef {
  694.           name addFavorite
  695.     style WINDOW_STYLE_SHADER
  696.     background "ui/assets/leftbutton.tga"
  697.           rect 270 395 7 26
  698.           visible 1 
  699.     decoration        
  700.         }
  701.  
  702. itemDef {
  703.           name addFavorite
  704.     style WINDOW_STYLE_SHADER
  705.     background "ui/assets/rightbutton.tga"
  706.           rect 367 395 7 26
  707.           visible 1 
  708.     decoration        
  709.         }
  710.  
  711.  
  712. itemDef {
  713.           name delfavorite
  714.           text "Del. Favorite"
  715.     type ITEM_TYPE_BUTTON
  716.           textscale .3
  717.     style WINDOW_STYLE_FILLED
  718.     ownerdrawFlag UI_SHOW_FAVORITESERVERS
  719.     background "ui/assets/button_back.tga"
  720.           rect 276 395 92 26
  721.     textalign 1
  722.           textalignx 46        // center
  723.           textaligny 20
  724.     backcolor .37 .1 .1 1
  725.           forecolor 1 1 1 1
  726.           visible 1 
  727.           action { play "sound/misc/nomenu.wav" ; 
  728.     uiScript DeleteFavorite ; uiScript UpdateFilter }
  729.     mouseEnter { show message_delFavorite ; setitemcolor delfavorite backcolor .1 .37 .1 1 }
  730.           mouseExit { hide message_delFavorite ; setitemcolor delfavorite backcolor .37 .1 .1 1 }            
  731.         }
  732. itemDef {
  733.           name delfavorite
  734.     style WINDOW_STYLE_SHADER
  735.     ownerdrawFlag UI_SHOW_FAVORITESERVERS
  736.     background "ui/assets/framebutton.tga"
  737.     rect 276 395 92 26
  738.           visible 1 
  739.     decoration        
  740.         }
  741.  
  742. itemDef {
  743.           name delfavorite
  744.     style WINDOW_STYLE_SHADER
  745.     ownerdrawFlag UI_SHOW_FAVORITESERVERS
  746.     background "ui/assets/leftbutton.tga"
  747.           rect 270 395 7 26
  748.           visible 1 
  749.     decoration        
  750.         }
  751.  
  752. itemDef {
  753.           name delfavorite
  754.     style WINDOW_STYLE_SHADER
  755.     ownerdrawFlag UI_SHOW_FAVORITESERVERS
  756.     background "ui/assets/rightbutton.tga"
  757.           rect 367 395 7 26
  758.           visible 1 
  759.     decoration        
  760.         }
  761.  
  762.  
  763.  
  764.  
  765.  
  766. itemDef {
  767.           name serverinfo
  768.           text "Server Info"
  769.     type ITEM_TYPE_BUTTON
  770.           textscale .3
  771.     style WINDOW_STYLE_FILLED
  772.     background "ui/assets/button_back.tga"
  773.           rect 404 395 92 26
  774.     textalign 1
  775.           textalignx 46        // center
  776.           textaligny 20
  777.     backcolor .37 .1 .1 1
  778.           forecolor 1 1 1 1
  779.           visible 1 
  780.           action { play "sound/misc/kcaction.wav" ; 
  781.     open serverinfo_popmenu }
  782.     mouseEnter { show message_serverinfo ; setitemcolor serverinfo backcolor .1 .37 .1 1 }
  783.           mouseExit { hide message_serverinfo ; setitemcolor serverinfo backcolor .37 .1 .1 1 }            
  784.         }
  785. itemDef {
  786.           name serverinfo
  787.     style WINDOW_STYLE_SHADER
  788.     background "ui/assets/framebutton.tga"
  789.     rect 404 395 92 26
  790.           visible 1 
  791.     decoration        
  792.         }
  793.  
  794. itemDef {
  795.           name serverinfo
  796.     style WINDOW_STYLE_SHADER
  797.     background "ui/assets/leftbutton.tga"
  798.           rect 398 395 7 26
  799.           visible 1 
  800.     decoration        
  801.         }
  802.  
  803. itemDef {
  804.           name serverinfo
  805.     style WINDOW_STYLE_SHADER
  806.     background "ui/assets/rightbutton.tga"
  807.           rect 495 395 7 26
  808.           visible 1 
  809.     decoration        
  810.         }
  811.  
  812. itemDef {
  813.           name findplayer
  814.           text "Find Friend"
  815.     type ITEM_TYPE_BUTTON
  816.           textscale .3
  817.     style WINDOW_STYLE_FILLED
  818.     background "ui/assets/button_back.tga"
  819.           rect 532 395 92 26
  820.     textalign 1
  821.           textalignx 46        // center
  822.           textaligny 20
  823.     backcolor .37 .1 .1 1
  824.           forecolor 1 1 1 1
  825.           visible 1 
  826.           action { play "sound/misc/kcaction.wav" ; 
  827.     open findplayer_popmenu }
  828.     mouseEnter { show message_findplayer ; setitemcolor findplayer backcolor .1 .37 .1 1 }
  829.           mouseExit { hide message_findplayer ; setitemcolor findplayer backcolor .37 .1 .1 1 }            
  830.         }
  831. itemDef {
  832.           name serverinfo
  833.     style WINDOW_STYLE_SHADER
  834.     background "ui/assets/framebutton.tga"
  835.     rect 532 395 92 26
  836.           visible 1 
  837.     decoration        
  838.         }
  839.  
  840. itemDef {
  841.           name serverinfo
  842.     style WINDOW_STYLE_SHADER
  843.     background "ui/assets/leftbutton.tga"
  844.           rect 526 395 7 26
  845.           visible 1 
  846.     decoration        
  847.         }
  848.  
  849. itemDef {
  850.           name serverinfo
  851.     style WINDOW_STYLE_SHADER
  852.     background "ui/assets/rightbutton.tga"
  853.           rect 623 395 7 26
  854.           visible 1 
  855.     decoration        
  856.         }
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865. //    VIEW OPTIONS    //
  866.  
  867. itemDef {
  868.           name viewEmpty
  869.     type ITEM_TYPE_YESNO
  870.           text "View Empty:"
  871.  
  872.     cvar "ui_browserShowEmpty"
  873.           textscale .25
  874.           rect 262 71 125 20
  875.     textalign 0
  876.           textalignx 0        
  877.           textaligny 17
  878.           forecolor 1 1 1 1
  879.           visible 1 
  880.         action { play "sound/misc/nomenu.wav" ;
  881.         uiScript RefreshFilter }
  882.     mouseEnter { show message_viewEmpty }
  883.           mouseExit { hide message_viewEmpty }            
  884.     }
  885. itemDef {
  886.           name viewEmpty
  887.     type 11
  888.           text "View Full:"
  889.     cvar "ui_browserShowFull"
  890.           textscale .25
  891.           rect 387 71 125 20
  892.     textalign 0
  893.           textalignx 0        
  894.           textaligny 17
  895.           forecolor 1 1 1 1
  896.           visible 1 
  897.         action { uiScript RefreshFilter ; 
  898.         play "sound/misc/nomenu.wav" }
  899.     mouseEnter { show message_viewFull }
  900.           mouseExit { hide message_viewFull }            
  901.     }
  902.  
  903.  
  904.  
  905.  
  906.  
  907. // BACK BAR    //
  908.  
  909.  
  910.   itemDef {
  911.       name gotobar
  912.       style 2
  913.       rect 0 430 640 30 
  914.       textscale 0.4
  915.       textalign 0        // center
  916.       textalignx 60            // x alignment point for text
  917.                                 // use it to offset left/right text from the edge 
  918.                                 // or to center the text on a different point
  919.       textaligny 21        
  920.       style 2
  921.       border 4
  922.       bordercolor 0.5 0.5 0.5 0.5
  923.       bordersize 2
  924.       backcolor 0 0 .75 0.5
  925.       visible 1 
  926.       mouseEnter { setcolor backcolor .75 0 0 .5 }
  927.       mouseExit { setcolor backcolor 0 0 .75 .5 }
  928.       decoration 
  929.     }
  930.  
  931.     itemDef {
  932.           name back
  933.     style 3
  934.           background "ui/assets/backarrow.tga"
  935.     rect 16 424 50 50 
  936.           visible 1 
  937.           action { close joinserver ; open main }
  938.     mouseEnter { hide back ; show back_alt ; show message_back }
  939.         }
  940.  
  941. itemDef {
  942.           name back_alt
  943.           style WINDOW_STYLE_SHADER
  944.     background "ui/assets/backarrow_alt.tga"
  945.     rect 14 422 54 54 
  946.           backcolor 0 0 0 0
  947.           forecolor 1 1 1 1
  948.           visible 0
  949.     type ITEM_TYPE_BUTTON
  950.           mouseExit { hide back_alt ; show back ; hide message_back }      
  951.           action { close joinserver ; open main }      
  952.         }
  953.  
  954.  
  955.  
  956.  
  957.     itemDef {
  958.           name accept
  959.           style 3    
  960.          rect 574 424 50 50 
  961.          background "ui/assets/forwardarrow.tga"
  962.           backcolor 0 0 0 0
  963.           forecolor 1 1 1 1
  964.           visible 1 
  965.         mouseEnter { show lightning ; hide accept ; show accept_alt ; show message_accept ; playlooped "sound/misc/loop_electricity_05.wav" }
  966.           action { uiScript JoinServer }
  967.   }
  968.  
  969.      itemDef {
  970.           name accept_alt
  971.           style WINDOW_STYLE_SHADER
  972.          rect 572 422 54 54 
  973.          background "ui/assets/forwardarrow_alt.tga"
  974.           backcolor 0 0 0 0
  975.         type ITEM_TYPE_BUTTON
  976.           forecolor 1 1 1 1
  977.           visible 0  
  978.     type ITEM_TYPE_BUTTON 
  979.           mouseExit { hide lightning ; hide accept_alt ; show accept ; hide message_accept ; playlooped "music/fla_mp03.wav" }    
  980.           action { uiScript JoinServer }
  981.  
  982.   }
  983.  
  984.  itemDef {
  985.           name lightning
  986.           style 3
  987.     background lightningkc
  988.           rect 46 385 246 128     
  989.           visible 0 
  990.           decoration 
  991.         }
  992. itemDef {
  993.           name lightning
  994.           style 3
  995.     background lightningkc
  996.           rect 345 385 246 128     
  997.           visible 0 
  998.           decoration 
  999.         }
  1000.  
  1001.  
  1002.  
  1003. //    MESSAGES    //
  1004.  
  1005. itemDef {
  1006.     name message_back
  1007.     style 0 
  1008.     rect 320 430 128 30
  1009.     textalign 1
  1010.     textstyle 1
  1011.     textalignx 0
  1012.     textaligny 25
  1013.     textscale .416
  1014.     text "Exit to Main Menu"
  1015.     forecolor 1 1 1 1
  1016.     decoration 
  1017.     visible 0
  1018.     }
  1019.  
  1020. itemDef {
  1021.     name message_accept
  1022.     style 0 
  1023.     rect 320 430 128 30
  1024.     textalign 1
  1025.     textalignx 0
  1026.     textstyle 1
  1027.     textaligny 25
  1028.     textscale .416
  1029.     text "Join Arena"
  1030.     forecolor 1 1 1 1
  1031.     decoration 
  1032.     visible 0
  1033.     }
  1034. itemDef {
  1035.     name message_source
  1036.     style 0 
  1037.     rect 320 430 128 30
  1038.     textalign 1
  1039.     textstyle 1
  1040.     textalignx 0
  1041.     textaligny 25
  1042.     textscale .416
  1043.     text "Set Source"
  1044.     forecolor 1 1 1 1
  1045.     decoration 
  1046.     visible 0
  1047.     }
  1048.  
  1049. itemDef {
  1050.     name message_gamefilter
  1051.     style 0 
  1052.     rect 320 430 128 30
  1053.     textalign 1
  1054.     textstyle 1
  1055.     textalignx 0
  1056.     textaligny 25
  1057.     textscale .416
  1058.     text "Set to Filter for Specific Game Mods"
  1059.     forecolor 1 1 1 1
  1060.     decoration 
  1061.     visible 0
  1062.     }
  1063. itemDef {
  1064.     name message_typefilter
  1065.     style 0 
  1066.     rect 320 430 128 30
  1067.     textalign 1
  1068.     textstyle 1
  1069.     textalignx 0
  1070.     textaligny 25
  1071.     textscale .416
  1072.     text "Set to Filter for Specific Game Types"
  1073.     forecolor 1 1 1 1
  1074.     decoration 
  1075.     visible 0
  1076.     }
  1077.  
  1078. itemDef {
  1079.     name message_sort
  1080.     style 0 
  1081.     rect 320 430 128 30
  1082.     textalign 1
  1083.     textstyle 1
  1084.     textalignx 0
  1085.     textaligny 25
  1086.     textscale .416
  1087.     text "Sort Column"
  1088.     forecolor 1 1 1 1
  1089.     decoration 
  1090.     visible 0
  1091.     }
  1092. itemDef {
  1093.     name message_refreshSource
  1094.     style 0 
  1095.     rect 320 430 128 30
  1096.     textalign 1
  1097.     textstyle 1
  1098.     textalignx 0
  1099.     textaligny 25
  1100.     textscale .416
  1101.     text "Get Updated Server List from Current Source"
  1102.     forecolor 1 1 1 1
  1103.     decoration 
  1104.     visible 0
  1105.     }
  1106. itemDef {
  1107.     name message_refreshFilter
  1108.     style 0 
  1109.     rect 320 430 128 30
  1110.     textalign 1
  1111.     textstyle 1
  1112.     textalignx 0
  1113.     textaligny 25
  1114.     textscale .416
  1115.     text "Refresh All Currently Filtered Servers"
  1116.     forecolor 1 1 1 1
  1117.     decoration 
  1118.     visible 0
  1119.     }
  1120. itemDef {
  1121.     name message_addFavorite
  1122.     style 0 
  1123.     rect 320 430 128 30
  1124.     textalign 1
  1125.     textstyle 1
  1126.     textalignx 0
  1127.     textaligny 25
  1128.     textscale .416
  1129.     text "Add Selected Server to Favorites"
  1130.     forecolor 1 1 1 1
  1131.     decoration 
  1132.     visible 0
  1133.     }
  1134. itemDef {
  1135.     name message_delFavorite
  1136.     style 0 
  1137.     rect 320 430 128 30
  1138.     textalign 1
  1139.     textstyle 1
  1140.     textalignx 0
  1141.     textaligny 25
  1142.     textscale .416
  1143.     text "Delete Selected Server from Favorites"
  1144.     forecolor 1 1 1 1
  1145.     decoration 
  1146.     visible 0
  1147.     }
  1148. itemDef {
  1149.     name message_createFavorite
  1150.     style 0 
  1151.     rect 320 430 128 30
  1152.     textalign 1
  1153.     textstyle 1
  1154.     textalignx 0
  1155.     textaligny 25
  1156.     textscale .416
  1157.     text "Enter IP Address of Favorite Server"
  1158.     forecolor 1 1 1 1
  1159.     decoration 
  1160.     visible 0
  1161.     }
  1162. itemDef {
  1163.     name message_addfilter
  1164.     style 0 
  1165.     rect 320 430 128 30
  1166.     textalign 1
  1167.     textstyle 1
  1168.     textalignx 0
  1169.     textaligny 25
  1170.     textscale .416
  1171.     text "Enter Four Letter Filter and Description"
  1172.     forecolor 1 1 1 1
  1173.     decoration 
  1174.     visible 0
  1175.     }
  1176. itemDef {
  1177.     name message_password
  1178.     style 0 
  1179.     rect 320 430 128 30
  1180.     textalign 1
  1181.     textstyle 1
  1182.     textalignx 0
  1183.     textaligny 25
  1184.     textscale .416
  1185.     text "Enter Password for Protected Servers"
  1186.     forecolor 1 1 1 1
  1187.     decoration 
  1188.     visible 0
  1189.     }
  1190. itemDef {
  1191.     name message_serverinfo
  1192.     style 0 
  1193.     rect 320 430 128 30
  1194.     textalign 1
  1195.     textstyle 1
  1196.     textalignx 0
  1197.     textaligny 25
  1198.     textscale .416
  1199.     text "Display Server Information"
  1200.     forecolor 1 1 1 1
  1201.     decoration 
  1202.     visible 0
  1203.     }
  1204. itemDef {
  1205.     name message_findplayer
  1206.     style 0 
  1207.     rect 320 430 128 30
  1208.     textalign 1
  1209.     textstyle 1
  1210.     textalignx 0
  1211.     textaligny 25
  1212.     textscale .416
  1213.     text "Search Current Server List for Friends"
  1214.     forecolor 1 1 1 1
  1215.     decoration 
  1216.     visible 0
  1217.     }
  1218.  
  1219.  
  1220. itemDef {
  1221.           name fadebox
  1222.           style WINDOW_STYLE_FILLED
  1223.      background "ui/assets/fadebox.tga"
  1224.     forecolor 0 0 0 1
  1225.     backcolor 0 0 0 1
  1226.     rect 0 0 640 480
  1227.           visible 1 
  1228.     decoration
  1229.         }
  1230.  
  1231.  
  1232.  
  1233.  
  1234. }
  1235.  
  1236.  
  1237. }
  1238.  
  1239.  
  1240.